let vm_member = new Vue({
    el:"#rightmember",
    data:{
        member:[],buttonName:'修改',flag:false
    },created:function () {
        axios.get("/findUserAll").then(function (response) {
            vm_member.member = response.data;
            console.log(vm_member.member)
        }).catch(function (err) {
                alert(err);
        })
    },methods:{
        deletebyId:function (id) {
            if (confirm("确定删除吗")){
                axios.get("/deletebyid?id="+id).then(function (response) {
                     location.reload();
                }).catch(function (err) {
                    alert(err)
                })
            }
        },
        updateById:function (mid) {
            location.href="update.html?id="+mid;
        }
    }
})
